import type { Router } from 'vue-router'

export const routeBeforeEach = (router: Router) => {
  router.beforeEach((to, from, next) => {
    console.log(to, from)
    next()
  })
}
